package com.zy.dao.bs;

import java.util.List;
import org.apache.ibatis.annotations.Param;

import com.zy.dao.base.BaseDao;
import com.zy.entity.bs.Order;
import com.zy.pojo.query.bs.OrderQuery;

public interface OrderDao extends BaseDao<Order> {

	List<Order> listOrder(@Param("orderQuery") OrderQuery orderQuery, @Param("start") Integer start, @Param("limit") Integer limit);

	long countOrder(@Param("orderQuery") OrderQuery orderQuery);

	List<Order> getCustomerOrders(@Param("orderQuery") OrderQuery orderQuery);

	String endCode(@Param("code") String code);

}